package com.liyang.microservice.service1.service;


import com.liyang.microservice.service1.api.ConsumerService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Administrator
 * @version 1.0
 * @Title: ConsumerServiceImpl
 * @description TODO
 * @date 2021/4/24 0024 21:44
 */

// @Service
@DubboService
public class ConsumerServiceImpl implements ConsumerService {

@DubboReference
    com.liyang.microservice.service2.api.ConsumerService consumerService;

    public String service() {
        return "Consumer1 invoke " + "|" + consumerService.service();
    }
}